package cup.common.enums;

/**
 * @author : ruoyu
 * @date : 2022/7/7
 */
public enum CmdbWarningTypeEnum {

	WATERLEVELINDICATOR("WATERLEVELINDICATOR", 1, "水位计"),
	COVER("COVER", 2, "井盖传感器"),
	LIQUID("LIQUID", 3, "液位计"),
	POND("POND", 4, "积水检测设备"),
	DRAINAGE_RAIN_GAUGE("DRAINAGE_RAIN_GAUGE", 5, "区域雨量计"),
	FLOW("FLOW", 6, "流量计");

	private String typeKey;

	private Integer numberType;

	private String typeName;

	CmdbWarningTypeEnum(String typeKey, Integer numberType, String typeName) {
		this.typeKey = typeKey;
		this.numberType = numberType;
		this.typeName = typeName;
	}

	public static CmdbWarningTypeEnum findDataByTypeKey(String typeKey) {
		for (CmdbWarningTypeEnum value : CmdbWarningTypeEnum.values()) {
			if (value.getTypeKey().equals(typeKey)) {
				return value;
			}
		}
		return null;
	}

	public String getTypeKey() {
		return typeKey;
	}

	public Integer getNumberType() {
		return numberType;
	}

	public String getTypeName() {
		return typeName;
	}
}
